package net.zjitc.link;

public class DoubleNode <T> {
    DoubleNode<T> pre;
    T data;
    DoubleNode<T> next;

    public DoubleNode(T data){
        this.data = data;
    }

    public DoubleNode(DoubleNode<T> pre,T data){
        this.pre = pre;
        this.data = data;
    }

    public DoubleNode(T data ,DoubleNode<T> next){
        this.data = data;
        this.next = next;
    }


    public DoubleNode(T data, DoubleNode<T> next, DoubleNode<T> pre) {

        this.pre = pre;
        this.data = data;
    }
}
